package com.pink.service;

import com.pink.entity.dto.UserDto;
import com.pink.entity.query.UserQuery;
import com.pink.entity.vo.response.UserInformVo;
import org.springframework.security.core.userdetails.User;

import javax.validation.constraints.NotNull;

public interface UserService {
    UserDto findAccountByNameOrEmail(String username);

    String register(UserDto user);

    void updateLastLoginTime(Integer userId);

    UserInformVo findAccountByNameOrUsername(String username);

    UserQuery findUserQueryList(int pageNo, int pageSize, String username, Integer userRole);

    String deleteUser(Integer id);

    String updateUser(@NotNull UserDto user);

    String addUser(@NotNull UserDto user);

    UserDto getUserByuserId(Integer userId);

    String updatePassword(Integer userId,UserDto user, String repPassword);
}
